Answer "Get real. You can't install it in this stack"
hide message window
exit mouseup
end if
--
ModResCopy sourceStack,fname,"XCMD","ChangeMenu"
--
get the result
if first char of it is "E" then
put it into the message box
beep
answer "Attempt to install resource has failed."
else
beep
answer "Resource installation successful"
end if
hide message window
end mouseUp
-- part contents for background part 2
----- text -----
ChangeMenu
-- part contents for background part 13
----- text -----
13
-- part contents for background part 3
----- text -----
ChangeMenu lets you change the names of items in menus you've created using the NewMenu* XFCN. For example:
ChangeMenu myMenu, 2, "Go to Address"
Will change the second menu item in menu "myMenu" to read "Go To Address". If the original item was disabled or checked, the changed item will be also.
You can not change the title of a menu, only the items in the meu itself.
•••
All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
Nine to Five Software Company
P.O. Box 915
Greenwood, IN 46142
(317) 887-2154
& Michael Long
See also NewMenu*, EnableMenu*, DeleteMenu*, CheckMenu*, and ShowMenu*
-- part contents for background part 10
----- text -----
Syntax:
ChangeMenu <menuNumber>,
<itemNumber>,"Item"
<menuNumber> is the MenuID returned by the original newMenu call.
<itemNumber> is the number of the item in the menu that you want to rename.